import { createRouter, createWebHistory } from 'vue-router'
import LabLayout from '../components/LabLayout.vue'
import WarehouseLayout from '../components/WarehouseLayout.vue'
import DataStatistics from '../components/DataStatistics.vue'

const routes = [
  {
    path: '/lab-layout',
    name: 'LabLayout',
    component: LabLayout
  },
  {
    path: '/warehouse-layout',
    name: 'WarehouseLayout',
    component: WarehouseLayout
  },
  {
    path: '/data-statistics',
    name: 'DataStatistics',
    component: DataStatistics
  },
  {
    path: '/',
    redirect: '/lab-layout'
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
